import Vue from 'vue'
import Router from 'vue-router'
import Hello from '@/components/Hello'  /* 首页 */
import Login from '@/components/Login'  /* 登录 */

Vue.use(Router)

export default new Router({
  routes: [
    { // 首页
      path: '/',
      name: 'Hello',
      component: Hello
    },
    { // 练习1 -  登录
      path: '/login',
      name: 'Login',
      component: Login
    }
  ]
})
